<template>
  <div>
    <van-dialog v-model="show" :showConfirmButton="false">
      <div class="pig">
        <div class="load_img"></div>
      </div>
    </van-dialog>
  </div>
</template>

<script>
export default {
  props: ["show"],
  data() {
    return {
      show: false,
    };
  },
};
</script>

<style lang="less" scoped>
.van-dialog {
  z-index: 2002;
  height: 300px;
  background-color: transparent;
}
.pig {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  .load_img {
    width: 100%;
    height: 100%;
    background: url("..//assets/6.png") no-repeat 0 0;
    transform: translateY(0);
    position: relative;
    animation: move 0.6s infinite;
    z-index: 11;
    left: 0;
  }
}

@keyframes move {
  to {
    transform: translate(0, -100%);
  }
}
</style>